{include file="public/header" /}
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>详情</h5>
                </div>
                <div class="ibox-content layui-form">
                    <div class="layui-row layui-col-space10 layui-form-item ">

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">公开课标题：</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" class="layui-input" value="{$info.public_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">封面图：</label>
                            <div class="input-group col-sm-5">
                                <img id="role_user_front_img" height="100px"
                                     style="float:left;margin-left: 50px;margin-top: 20px;cursor:pointer;"
                                     src="{$info.public_img}"
                                     onerror="this.src='/static/admin/images/head_default.gif'" class="img-circle"/>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">发布端：</label>
                            <div class="layui-input-block">
                                {if $info.public_from==1}
                                <input type="text" lay-verify="required" class="layui-input" value="APP" disabled>
                                {/if}
                                {if $info.public_from==2}
                                <input type="text" lay-verify="required" class="layui-input" value="后台" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程分类：</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" class="layui-input" value="{$info.subject_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">年级：</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" class="layui-input" value="{$info.grade_name}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">是否免费：</label>
                            <div class="layui-input-block">
                                {if $info.public_type == 1}
                                <input type="text" lay-verify="required" class="layui-input" value="免费" disabled>
                                {/if}
                                {if $info.public_type == 2}
                                <input type="text" lay-verify="required" class="layui-input" value="收费" disabled>
                                {/if}
                            </div>
                        </div>

                        {if $info.public_type == 2}
                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">价格：</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" class="layui-input" value="{$info.public_price}" disabled>
                            </div>
                        </div>
                        {/if}

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">是否精品：</label>
                            <div class="layui-input-block">
                                {if $info.is_hot == 1}
                                <input type="text" lay-verify="required" class="layui-input" value="精品公开课" disabled>
                                {/if}
                                {if $info.is_hot == 2}
                                <input type="text" lay-verify="required" class="layui-input" value="非精品公开课" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程状态：</label>
                            <div class="layui-input-block">
                                {if $info.public_is_on == 1}
                                <input type="text" lay-verify="required" class="layui-input" value="上架中" disabled>
                                {/if}
                                {if $info.public_is_on == 2}
                                <input type="text" lay-verify="required" class="layui-input" value="已下架" disabled>
                                {/if}
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程简介：</label>
                            <div class="layui-input-block">
                                <textarea name="role_false_reason" lay-verify="required" class="layui-input " style="height:80px">{$info.public_intro}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">报名人数：</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" class="layui-input" value="{$num}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">课程老师：</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" class="layui-input" value="{$info.user_username}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">星级评分：</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" class="layui-input" value="{$star}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">教学年级：</label>
                            <div class="layui-input-block">
                                <input type="text" lay-verify="required" class="layui-input" value="{$grade}" disabled>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <label class="layui-form-label">老师简介：</label>
                            <div class="layui-input-block">
                                <textarea name="role_false_reason" lay-verify="required" class="layui-input " style="height:80px">{$info.user_intro}</textarea>
                            </div>
                        </div>

                        <div class="layui-form-item layui-col-md-offset1 layui-col-md8">
                            <div class="layui-input-block">
                                <button class="layui-btn layui-btn-primary" onclick="history.go(-1)">返回</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
<script>
</script>

</body>
</html>
